<extend name="Public:mainbase" />
<block name="content">
    <script language="javascript" src="__PUBLIC__/js/member.js?{:time()}"></script>
    <script type="text/javascript" src="__PUBLIC__/ckplayer/ckplayer.js" charset="utf-8"></script>
    <style>
        .player{float:left;margin:0 10px 10px 0}
    </style>
    <div class="topbtn">
        <ul>
            <li>直播标题：{$liveList[0]['title']}</li>
            <li>申请人：{$liveList[0]['realname']}</li>
            <eq  name="liveList[0]['v_status']" value="1">
                <li>直播人：{$liveList[0]['v_user_id']}</li>
            </eq>
            <li>地点：{$liveList[0]['address']}</li>
            <li>简介：{$liveList[0]['intro']}</li>
            <eq  name="liveList[0]['v_status']" value="3">
            <li>审核人：{$liveList[0]['v_user_id']}</li>
            <li>打回原因：{$liveList[0]['back_reason']}</li>
            </eq>
        </ul>
    <eq name="liveList[0]['v_status']" value="1">
        <button type="button" class="btn btn-danger btn-sm">关闭全部直播通道</button> <button type="button" class="btn btn-danger btn-sm">结束全部直播</button> <button type="button" class="btn btn-default btn-sm">获取播流地址</button></div>
    </div>

    <volist name="liveList" id="vo">
        <div class="player">
            <div id="a{$vo.id}"></div>
            <div class="name text-center">直播人：{$vo.realname} <button type="button" class="btn btn-danger btn-sm">关闭直播通道</button> <button type="button" class="btn btn-danger btn-sm">结束直播</button></div>
        </div>

    <script type="text/javascript">
        var flashvars={
            a:"{$vo['group_id']}_{$vo['user_id']}"
        };
        var video=['{:authAliyun("http://jwlive.appwuhan.com/jw/".$vo['group_id']."_".$vo['user_id'].".m3u8")}->application/x-mpegURL'];
        CKobject.embed('__PUBLIC__/ckplayer/ckplayer.swf','a{$vo.id}','ckplayer_{$vo.id}','400','300',false,flashvars,video);
    </script>
    </volist>
    </eq>
</block>